#include <stdio.h>


void ptr_swap_num(int *, int *);
void swap_num(int, int);
int main(){

    int a = 100;
    int b = 200;
    swap_num(a, b);
    printf("swap_num: a = %d, b = %d\n", a, b);

    ptr_swap_num(&a, &b);
    printf("ptr_swap_num: a = %d, b = %d\n", a, b);

    return 0;
}

void ptr_swap_num(int *a, int *b){

    int temp = *a;
    *a = *b;
    *b = temp;

    return;
}

void swap_num(int a, int b){

    int temp = a;
    a = b;
    b = temp;

    return;
}


